import request from '@/utils/request'

// 查询《中国食物成分》分类列表
export function listFoodclassify(query) {
  return request({
    url: '/food/foodclassify/list',
    method: 'get',
    params: query
  })
}

// 查询《中国食物成分》分类详细
export function getFoodclassify(id) {
  return request({
    url: '/food/foodclassify/' + id,
    method: 'get'
  })
}

// 新增《中国食物成分》分类
export function addFoodclassify(data) {
  return request({
    url: '/food/foodclassify',
    method: 'post',
    data: data
  })
}

// 修改《中国食物成分》分类
export function updateFoodclassify(data) {
  return request({
    url: '/food/foodclassify',
    method: 'put',
    data: data
  })
}

// 删除《中国食物成分》分类
export function delFoodclassify(id) {
  return request({
    url: '/food/foodclassify/' + id,
    method: 'delete'
  })
}
